// This file is part of Indico.
// Copyright (C) 2002 - 2025 CERN
//
// Indico is free software; you can redistribute it and/or
// modify it under the terms of the MIT License; see the
// LICENSE file for more details.

.room-card {
  height: 320px;
  width: 300px;

  .room-title {
    font-size: 1em;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }

  .room-image {
    position: relative;

    :global(.ui.image.dimmable) {
      width: 100%;
    }

    .room-extra-info {
      position: absolute;
      z-index: 1;
      width: 100%;
      height: 100%;
      pointer-events: none;
    }

    :global(.img) {
      width: 100%;
      height: 170px !important;
    }
  }

  .room-description {
    word-break: break-all;

    .room-comments {
      word-break: normal;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
      height: 40px;
    }
  }

  :global(.content) {
    max-height: 105px;
  }

  .room-content {
    .room-details {
      float: right;
    }
  }

  .icons-wrapper {
    display: flex;
    justify-content: center;
  }
}
